package com.nineclock.message.service;

import com.nineclock.system.dto.NcMessageDTO;
import com.nineclock.system.pojo.NcMessage;

import java.util.List;

public interface MessageService {
    /**
     * 根据用户别名推送消息
     * @param message
     * @return
     */
    public Boolean pushSingleMessage(NcMessage message) throws Exception;

    /**
     * @Author: lenovo
     * @Date: 16:08 2021/7/7
     * @Parms [messageDTO]
     * @ReturnType: java.util.List<com.nineclock.system.pojo.NcMessage>
     * @Description: 查询推送记录
    */
    List<NcMessage> findMessageRecord(NcMessageDTO messageDTO);

    /**
     * @Author: lenovo
     * @Date: 17:05 2021/7/7
     * @Parms [s]
     * @ReturnType: void
     * @Description: 更新消息为已读, 切审核通过
    */
    void updateMessageWithApproved(String s);
}
